<?php

namespace App\Kuafu\Statistics\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class StatisticsCacheEnum extends BaseCodeEnum
{
    protected const STATISTICAL_TOTAL_REDIS_KEYS    = 'statisticalTotal:SHOP_ID%sDATE%s';
    public const STATISTICAL_TOTAL_CACHE_TAG     = 'comprehensiveListV2';

    public static function getRedisKey(string $shopId, string $time): string
    {
        return sprintf(self::STATISTICAL_TOTAL_REDIS_KEYS, $shopId, $time);
    }

}
